﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace WeChatSDK.WeChatDto.Conversation.ReceivingMessage
{
    /// <summary>
    /// 接收消息模型
    /// </summary>
    [Serializable]
    [XmlType("xml")]
    [XmlRoot(Namespace = "", IsNullable = false, ElementName = "xml")]
    public class ReceivingMessageDto
    {
        /// <summary>
        /// 开发者微信号
        /// </summary>
        [XmlElement("ToUserName", DataType = "string")]
        public string ToUserName { get; set; }
        /// <summary>
        /// 发送方账号（一个OpenID）
        /// </summary>
        [XmlElement("FromUserName", DataType = "string")]
        public string FromUserName { get; set; }
        /// <summary>
        /// 消息创建时间 （整型）
        /// </summary>
        [XmlElement("CreateTime", DataType ="int")]
        public int CreateTime { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        [XmlElement("MsgType",DataType = "string")]
        public string MsgType { get; set; }
        /// <summary>
        /// 消息Id
        /// </summary>
        [XmlElement("MsgId", DataType = "long")]
        public long MsgId { get; set; }
    }
}
